﻿/**************************************************************************************************
|
| iDocScript - Document Sharing Script
| http://www.idocscript.com
| webmaster@idocscript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.idocscript.com/eula.html and to be bound by it.
|
| Copyright (c) iDocScript.com. All rights reserved.
|**************************************************************************************************/

Upgrade Instructions - v2.2 to v2.3


1. Upload the following file from the upload folder of this package to your server:
- /administrator/bans_ip.php
- /administrator/bans_ip_add.php
- /themes/administrator/bans_ip.tpl
- /themes/administrator/bans_ip_add.tpl
- /themes/administrator/global_header.tpl
- /themes/administrator/members_edit.tpl
- /themes/banned.tpl
- banned.php
- login.php
- signup.php



2. Open /include/config.php
Find:
STemplate::setTplDir($config['basedir']."/themes");

Add Below:
if($sban != "1")
{
	$bquery = "SELECT count(*) as total from bans_ips WHERE ip='".mysql_real_escape_string($_SERVER['REMOTE_ADDR'])."'";
	$bresult = $conn->execute($bquery);
	$bcount = $bresult->fields['total'];
	if($bcount > "0")
	{
		$brdr = $config['baseurl']."/banned.php";
		header("Location:$brdr");
		exit;
	}
}



3. Run the update.sql file from this folder in your database management tool such as phpMyAdmin